package com.qili.util;

/**
 * @Author Zhangshuo
 * @date 2020/11/16 14:44
 **/
public enum FileEnum {
    FL_ONLY(1),
    FL_FORMS(2),
    FL_FILES(3),
    FL_EVAL(4),
    FL_ONLYREAD(5),
    FL_INSERT_CHILD_IMG(6),//主文件中插入子文件图片
    FL_INSERT_CHILD_WORD(7),//主文件中插入子WORD文件
    FL_SIGN(8),//签字
    FL_SEAL(9),//盖章
    FL_Edit(10),//查看并编辑
    FL_SEAL_YZ(11),
    FL_SEAL_RECORD(12);//流程审批

    private int _iType;
    private String _sFileFormId;
    private String _sFilePathId;
    private String _sFileId;
    private String _sFilePath;
    private String _sFileTag;
    private String _sParam;

    private FileEnum(int type) {
        this._iType = type;
    }

    public int getType() {
        return _iType;
    }

    public void setType(int type) {
        this._iType = type;
    }

    public String getFileFormId() {
        return _sFileFormId;
    }

    public void setFileFormId(String FId) {
        this._sFileFormId = FId;
    }

    public String getFilePathId() {
        return _sFilePathId;
    }

    public void setFilePathId(String FId) {
        this._sFilePathId = FId;
    }

    public String getFileTag() {
        return _sFileTag;
    }

    public void setFileTag(String fileTag) {
        this._sFileTag = fileTag;
    }

    public String getFileId() {
        return _sFileId;
    }

    public void setFileId(String fileId) {
        this._sFileId = fileId;
    }

    public String getFilePath() {
        return _sFilePath;
    }

    public void setFilePath(String filePath) {
        this._sFilePath = filePath;
    }

    public String getParam() {
        return _sParam;
    }

    public void setParam(String param) {
        this._sParam = param;
    }

    public static FileEnum getEnumByType(int type) {
        for (FileEnum bt : values()) {
            if (bt._iType == type) {
                return bt;
            }
        }
        return null;
    }

}
